package com.wzy.netty.core.inboundhandlerandoutboundhandler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 描述  :
 * 创建人:    Wzy
 * 创建时间: 2020-06-11  23:00
 */
public class MyServerHandel extends SimpleChannelInboundHandler<Long> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, Long aLong) throws Exception {
        System.out.println("读取到客户端传送的信息:" + channelHandlerContext.channel().remoteAddress() + ">>" + aLong);
        channelHandlerContext.writeAndFlush(654321L);
    }
}
